package cn.edu.zut.score.core.constant;

import io.swagger.annotations.ApiModel;

/**
 * @author zby
 * @date 2021/06/27
 */
@ApiModel("角色类型枚举")
public enum RoleEnum {
    //

    admin(0, "管理员"),
    teacher(1, "教师"),
    student(2, "学生");


    private Integer code;
    private String type;

    RoleEnum(Integer code, String type) {
        this.code = code;
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
